package entity;
import java.awt.Color;
import desktop_fields.Street;

public class Territory extends Ownable {

	public Territory(String title, String subtitle, String desc, int price, int cnsq){
		super(title,subtitle,desc,price,cnsq);
	}

	/**
	 * Returnerer konsekvensen for Territory-feltet
	 */
	protected int getRent(){
		return consequence;
	}
		
	public desktop_fields.Field createGuiField() {
		Color territoryColor = new Color(255, 155, 0);
		
		desktop_fields.Field f = new Street.Builder()
		.setTitle(title)
		.setSubText(subtitle + price)
		.setDescription(description)
		.setFgColor(Color.BLACK)
		.setBgColor(territoryColor)
		.setRent("")
		.build();
		return f;
	}
}
